import { useForceUpdate } from './hooks';

function App() {
  const forceUpdate = useForceUpdate();
  console.log('我重新渲染了');
  return (
    <div className='App'>
      <header className='App-header'>
        <p>
          Edit <code>src/App.js</code> and save to reload.
        </p>
        <button onClick={() => forceUpdate()}>重新渲染</button>
      </header>
    </div>
  );
}

export default App;
